package cn.ddd.linktran.infrastructure.transform.mapper;

import cn.ddd.linktran.infrastructure.transform.po.CompressionCode;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface CompressionCodeMapper extends BaseMapper<CompressionCode> {
    @Select(" SELECT id, compression_code, code_status, sequence_value, strategy, create_time, edit_time, creator, editor, deleted, version FROM compression_code WHERE code_status = 1 AND deleted = 0 ORDER BY create_time LIMIT 1 ")
    CompressionCode selectLatestAvailable();
}
